#

pkgname=epdfview
pkgver=0.1.8
pkgrel=1
pkgdesc="A free lightweight PDF document viewer."
url="http://www.emma-soft.com/projects/epdfview/"
arch=('ppc')
license=('GPL')
depends=('gtk2' 'poppler-glib' 'libcups' \
				'desktop-file-utils')
makedepends=('intltool' 'pkg-config' 'gettext' 'cppunit')
install=${pkgname}.install
source=("http://trac..emma-soft.com/${pkgname}/chrome/site/releases/${pkgname}-${pkgver}.tar.bz2")
md5sums=('e50285b01612169b2594fea375f53ae4')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  sh configure --prefix=/usr \
		 --sysconfdir=/etc \
		 --libexecdir=/usr/lib \
		 --localstatedir=/var \
		 --enable-nls \
		 --with-cups

  make

	sed -i 's|Icon.*|Icon=/usr/share/epdfview/pixmaps/icon_epdfview-48.png|' \
			data/${pkgname}.desktop
}
package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
